package com.backflash.client;

import java.util.Vector;

import com.backflash.client.bean.User;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("BackFlashService")
public interface BackFlashService  extends RemoteService {

	public User checkLogin(String userName, String password);
	public Vector<String> getAllTopics();
	public Topic getTopic(String topicHeading);
	public void saveTopic(Topic t);
	public void saveMessage(Integer topicID, Message m);
	public void deleteTopic(String topicHeading);
	public void deleteMessage(Integer topicID, Message m);
	public User getUserFromSession();
	public void setUserInSession(User user);
	public Vector<User> getAllUsers();
	public void deleteUser(String userName);
	public void changeUserName(String oldUserName, String newUserName);

}